<?php
require('includes/top.php');
$category = $_POST["category"];

//$newstype=$_POST['newstype'];
//$struid = $_SESSION['uid'];		
$sql="INSERT INTO categories(`category`) VALUES ('$category')";
$result=mysql_query($sql);
header("location:addcategory.php");
ob_flush();
?>
 